package com.example.administrator.printoutindemo.bean;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/9/11.
 */

public class MobileSendInfo {

    int did;
    int spid;
    int uid;
    double num;
    int status;
    String remark;
    byte[] img;

    public MobileSendInfo() {
    }

    public String ConvertToJson(MobileSendInfo model) {
        String jsonStr = "";
        JSONObject modelJsonObject = new JSONObject();
        try {
            modelJsonObject.put("img",model.getImg());
            modelJsonObject.put("did", model.getDid());
            modelJsonObject.put("spid", model.getSpid());
            modelJsonObject.put("uid", model.getUid());
            modelJsonObject.put("num", model.getNum());
            modelJsonObject.put("status", model.getStatus());
            modelJsonObject.put("remark", model.getRemark());

            jsonStr = modelJsonObject.toString();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return jsonStr;
    }

    public int getDid() {
        return did;
    }

    public void setDid(int did) {
        this.did = did;
    }

    public int getSpid() {
        return spid;
    }

    public void setSpid(int spid) {
        this.spid = spid;
    }

    public int getUid() {
        return uid;
    }

    public void setUid(int uid) {
        this.uid = uid;
    }

    public double getNum() {
        return num;
    }

    public void setNum(double num) {
        this.num = num;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public byte[] getImg() {
        return img;
    }

    public void setImg(byte[] img) {
        this.img = img;
    }
}
